<template>
  <el-header>
    <div>
      <img src="@/assets/img/heima.png" alt="" />
      <span>电商后台管理系统</span>
    </div>
    <el-button type="info" @click="logout">退出登录</el-button>
  </el-header>
</template>

<script>
export default {
  name: 'Header',
}
</script>

<style lang="less" scoped>
.el-header {
  background-color: #373d41;
  display: flex;
  justify-content: space-between;
  padding-left: 0;
  align-items: center;
  color: #fff;
  font-size: 20px;
  > div {
    display: flex;
    align-items: center;

    span {
      margin-left: 15px;
    }
  }
}
</style>
